import request from '@/utils/request'

// await拿到的数据是从这里
export const getArticleApi = (params) => request({
  url: '/admin/interview/query',
  params
})

// 删除接口
export const delArticle = (id) => request({
  url: '/admin/interview/remove',
  method: 'DELETE',
  data: {
    id: id
  }
})

// 确认按钮接口
export const addArticle = (data) => request({
  url: '/admin/interview/create',
  method: 'POST',
  data
})

// 修改按钮
export const updateArticle = (data) => request({
  url: '/admin/interview/update',
  method: 'PUT',
  data
})
